/**
 *
 * 动火作业票
 * type: span/ span标签； input: el-input； select: el-select
 *
 */

export const hotFormItems = () => {
  return [
    {
      label: "申请部门",
      prop: "specialApplicationDept",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
      rules: [],
    },
    {
      label: "申请人",
      prop: "createByName",
      type: "span",
      options: [
        /* 相同的选择项列表 */
      ],
      rules: [],
    },
    {
      label: "作业内容",
      prop: "specialWorkInfo",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入作业内容", trigger: "blur" }],
    },
    {
      label: "申请时间",
      prop: "createTime",
      type: "datetime",
      options: [],
      rules: [{ required: true, errorMessage: "请选择申请时间", trigger: "change" }],
    },
    {
      label: "动火地点及部位",
      prop: "specialSite",
      type: "input",
      options: [],
      rules: [
        { required: true, errorMessage: "请输入动火地点及部位", trigger: "blur" },
      ],
    },
    {
      label: "具体位置选择",
      prop: "specialLocation",
      type: "map",
      options: [],
      // rules: [{ required: true, errorMessage: "请选择动火地点及部位", trigger: "blur" }],
    },
    {
      label: "动火人",
      prop: "iratePerson",
      type: "select",
      multiple: true,
      options: [],
      rules: [{ required: true, errorMessage: "请选择动火人", trigger: "change" }],
    },
    {
      label: "动火负责人",
      prop: "hotHead",
      type: "select",

      options: [],
      rules: [
        { required: true, errorMessage: "请选择动火负责人", trigger: "change" },
      ],
    },
    {
      label: "动火监护人",
      prop: "angryGuardian",
      type: "select",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择动火监护人", trigger: "change" },
      ],
    },
    {
      label: "动火操作证",
      prop: "hotOperationCertificate",
      type: "input",
      options: [],
      rules: [{ required: true, errorMessage: "请输入动火操作证", trigger: "blur" }],
    },
    {
      label: "计划动火时间",
      prop: "putTime",
      type: "daterange",
      options: [],
      rules: [
        { required: true, errorMessage: "请选择计划动火时间", trigger: "change" },
      ],
    },
    {
      label: "动火级别",
      prop: "specialGrade",
      type: "radioGroup",
      options: [
        { value: "0", text: "特级" },
        { value: "1", text: "一级" },
        { value: "2", text: "二级" },
      ],
      rules: [{ required: true, errorMessage: "请选择动火级别", trigger: "change" }],
    },
    {
      label: "动火方式",
      prop: "hotMode",
      checkBoxArr: [],
      type: "checkbox",

      options: [
        { value: "电焊", text: "电焊" },
        { value: "气割", text: "气割" },
        { value: "喷灯", text: "喷灯" },
        { value: "电砂轮", text: "电砂轮" },
        { value: "磨光机", text: "磨光机" },
        { value: "电钻", text: "电钻" },
        { value: "其他", text: "其他" },
      ],
      rules: [{ required: true, errorMessage: "请选择动火方式", trigger: "change" }],
    },
    {
      label: "关联其他特殊作业",
      prop: "associateOthers",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "临时用电", text: "临时用电" },
        { value: "高处作业", text: "高处作业" },
        { value: "动火作业", text: "动火作业" },
        { value: "动土", text: "动土" },
        { value: "盲板抽堵", text: "盲板抽堵" },
        { value: "断路", text: "断路" },
        { value: "吊装", text: "吊装" },
        { value: "交叉作业", text: "交叉作业" },
      ],
      rules: [
        // { required: true, errorMessage: "请选择其他特殊作业", trigger: "change" },
      ],
    },

    {
      label: "风险辨识",
      prop: "riskIdentification",
      checkBoxArr: [],
      type: "checkbox",
      options: [
        { value: "火灾、爆炸", text: "火灾、爆炸" },
        { value: "燃爆", text: "燃爆" },
        { value: "中毒", text: "中毒" },
        { value: "窒息", text: "窒息" },
        { value: "高处坠落", text: "高处坠落" },
        { value: "触电", text: "触电" },
        { value: "灼伤", text: "灼伤" },
        { value: "机械伤害", text: "机械伤害" },
        { value: "其他", text: "其他" },
      ],
      rules: [{ required: true, errorMessage: "请选择风险辨识", trigger: "change" }],
    },

    
    {
      label: "作业票号",
      prop: "jobNumber",
      checkBoxArr: [],
      type: "input",
      options: [
    
      ],
      disabled: true
    },
  ];
};
